package com.ruoyi.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.app.domain.BasicProfession;
import com.ruoyi.app.mapper.BasicProfessionMapper;
import com.ruoyi.app.service.IBasicProfessionService;
import com.ruoyi.common.utils.MybatisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 行业分类Service业务层处理ß
 * 
 * @author ruoyi
 * @date 2023-12-21
 */
@Service
public class BasicProfessionServiceImpl extends ServiceImpl<BasicProfessionMapper, BasicProfession> implements IBasicProfessionService
{
    @Autowired
    private BasicProfessionMapper basicProfessionMapper;

    /**
     * 查询行业分类
     * 
     * @param id 行业分类主键
     * @return 行业分类
     */
    @Override
    public BasicProfession selectBasicProfessionById(String id)
    {
        return baseMapper.selectById(id);
    }

    /**
     * 查询行业分类列表
     * 
     * @param basicProfession 行业分类
     * @return 行业分类
     */
    @Override
    public List<BasicProfession> selectBasicProfessionList(BasicProfession basicProfession)
    {
        return MybatisUtils.list(baseMapper, basicProfession);
    }
}
